.class public Lcom/melesta/payment/sms/SmsResponse;
.super Ljava/lang/Object;
.source "SmsResponse.java"

# interfaces
.implements Lcom/melesta/payment/interfaces/IResponse;


# instance fields
.field private code:I

.field private data:Ljava/lang/String;

.field private internalId:J

.field private listener:Lcom/melesta/payment/interfaces/IListener;

.field private name:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 6
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public getCode()I
    .locals 1

    .prologue
    .line 24
    iget v0, p0, Lcom/melesta/payment/sms/SmsResponse;->code:I

    return v0
.end method

.method public getData()Ljava/lang/String;
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsResponse;->data:Ljava/lang/String;

    return-object v0
.end method

.method public getInternalId()J
    .locals 2

    .prologue
    .line 57
    iget-wide v0, p0, Lcom/melesta/payment/sms/SmsResponse;->internalId:J

    return-wide v0
.end method

.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 15
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsResponse;->name:Ljava/lang/String;

    return-object v0
.end method

.method public run()V
    .locals 5

    .prologue
    .line 43
    iget v0, p0, Lcom/melesta/payment/sms/SmsResponse;->code:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    .line 44
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsResponse;->listener:Lcom/melesta/payment/interfaces/IListener;

    iget-object v1, p0, Lcom/melesta/payment/sms/SmsResponse;->name:Ljava/lang/String;

    const/4 v2, 0x1

    iget-wide v3, p0, Lcom/melesta/payment/sms/SmsResponse;->internalId:J

    invoke-interface {v0, v1, v2, v3, v4}, Lcom/melesta/payment/interfaces/IListener;->onPurchase(Ljava/lang/String;IJ)V

    .line 47
    :goto_0
    return-void

    .line 46
    :cond_0
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsResponse;->listener:Lcom/melesta/payment/interfaces/IListener;

    iget-object v1, p0, Lcom/melesta/payment/sms/SmsResponse;->name:Ljava/lang/String;

    iget v2, p0, Lcom/melesta/payment/sms/SmsResponse;->code:I

    iget-object v3, p0, Lcom/melesta/payment/sms/SmsResponse;->data:Ljava/lang/String;

    invoke-interface {v0, v1, v2, v3}, Lcom/melesta/payment/interfaces/IListener;->onError(Ljava/lang/String;ILjava/lang/String;)V

    goto :goto_0
.end method

.method public setCode(I)Lcom/melesta/payment/sms/SmsResponse;
    .locals 0
    .parameter "code"

    .prologue
    .line 28
    iput p1, p0, Lcom/melesta/payment/sms/SmsResponse;->code:I

    .line 29
    return-object p0
.end method

.method public setData(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsResponse;
    .locals 0
    .parameter "data"

    .prologue
    .line 37
    iput-object p1, p0, Lcom/melesta/payment/sms/SmsResponse;->data:Ljava/lang/String;

    .line 38
    return-object p0
.end method

.method public setInternalId(J)V
    .locals 0
    .parameter "id"

    .prologue
    .line 62
    iput-wide p1, p0, Lcom/melesta/payment/sms/SmsResponse;->internalId:J

    .line 63
    return-void
.end method

.method public bridge synthetic setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/interfaces/IResponse;
    .locals 1
    .parameter "x0"

    .prologue
    .line 6
    invoke-virtual {p0, p1}, Lcom/melesta/payment/sms/SmsResponse;->setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/sms/SmsResponse;

    move-result-object v0

    return-object v0
.end method

.method public setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/sms/SmsResponse;
    .locals 0
    .parameter "listener"

    .prologue
    .line 51
    iput-object p1, p0, Lcom/melesta/payment/sms/SmsResponse;->listener:Lcom/melesta/payment/interfaces/IListener;

    .line 52
    return-object p0
.end method

.method public setName(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsResponse;
    .locals 0
    .parameter "name"

    .prologue
    .line 19
    iput-object p1, p0, Lcom/melesta/payment/sms/SmsResponse;->name:Ljava/lang/String;

    .line 20
    return-object p0
.end method
